//http://tool.lu/js/
$(function () {
    var pageValue = $('#counter_value_page');
    var siteValue = $('#counter_value_site');

    var k = 0;
    if (pageValue.length > 0) k += 1;
    if (siteValue.length > 0) k += 2;

    $.ajax({
        type: 'GET',
        url: '//busuanzi.czsth.com/counter?k=' + k,
        dataType: 'jsonp',
        jsonp: 'jsonpCallback',
        success: function (data) {
            var json = eval(data);
            pageValue.text(json.page);
            siteValue.text(json.site);
        },
        error: function () {
            $('#counter_container_page').html("");
            $('#counter_container_site').html("");
        }
    });
});